<template>
  <div>
    <h3 :style="{ marginBottom: '16px' }">
      Default Size
    </h3>
    <CloudList bordered :data-source="data">
      <CloudListItem slot="renderItem" slot-scope="item, index">
        {{ item }}
      </CloudListItem>
      <div slot="header">
        Header
      </div>
      <div slot="footer">
        Footer
      </div>
    </CloudList>
    <h3 :style="{ margin: '16px 0' }">
      Small Size
    </h3>
    <CloudList size="small" bordered :data-source="data">
      <CloudListItem slot="renderItem" slot-scope="item, index">
        {{ item }}
      </CloudListItem>
      <div slot="header">
        Header
      </div>
      <div slot="footer">
        Footer
      </div>
    </CloudList>
    <h3 :style="{ margin: '16px 0' }">
      Large Size
    </h3>
    <CloudList size="large" bordered :data-source="data">
      <CloudListItem slot="renderItem" slot-scope="item, index">
        {{ item }}
      </CloudListItem>
      <div slot="header">
        Header
      </div>
      <div slot="footer">
        Footer
      </div>
    </CloudList>
  </div>
</template>
<script>
const data = [
  'Racing car sprays burning fuel into crowd.',
  'Japanese princess to wed commoner.',
  'Australian walks 100km after outback crash.',
  'Man charged over missing wedding girl.',
  'Los Angeles battles huge wildfires.',
];

export default {
  title: '4.简单列表',
  data() {
    return {
      data,
    };
  },
};
</script>
<style></style>
